.top-bar {
  background-color: #333;
  height: 40px;
  color: #fff;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
}
.top-box {
  width: 1240px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.top-nav-list a {
  display: inline-block;
  color: #fff;
  margin-right: 25px;
  box-sizing: border-box;
  cursor: pointer;
  height: 100%;
  padding: 10px 0;
  text-decoration: none;
  font-size: 12px;
}
.top-user-box {
  display: flex;
  /* position: relative; */
}
.top-user-box .login-box > div {
  display: inline-block;
  color: #fff;
  margin-right: 25px;
  box-sizing: border-box;
  cursor: pointer;
  height: 100%;
  padding: 10px 0;
  font-size: 12px;
}
.top-user-box .cart-box > a > img {
  width: 24px;
  height: 24px;
  /* margin-right: 25px; */
  padding: 5px;
 
}
.top-user-box .cart-box:hover .cart-box-text > div {
  display: block;
  background-color: #eee;
  color: #333;
}
.top-user-box .cart-box:hover {
  background-color: #eee;
}
.top-user-box .cart-box {
  position: relative;
}
.top-user-box > .cart-box > .cart-box-text > div {
  display: block;
  width: 260px;
  font-size: 12px;
  position: absolute;
  top: 40px;
  left: -244.5px;
  height: 60px;
  display: none;
  /* text-align: center; */
  line-height: 60px;
  padding: 10px;
  background-color: wheat;
  color: black;
}

/* 搜索栏 */
.header-bar {
  /* width: 100%; */
  margin-top: 40px;
  border-bottom: 1px solid #666;
}
.header-box {
  width: 1240px;
  margin: auto;
  background-color: #fff;
}
.header-box .header-bav-search {
  margin: auto;
  height: 36px;
  padding: 30px 0 36px;
  display: flex;
  position: relative;
}
.header-box .header-bav-search .nav-list a {
  display: inline-block;
  color: #333;
  margin-left: 50px;
  font-size: 18px;
  text-decoration: none;
}
.header-box .header-bav-search .search-box {
  position: absolute;
  right: 0;
}
.header-box .header-bav-search .search-box .search-bar {
  padding: 5px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
}

.header-box .header-bav-search .search-box .search-bar > input {
  width: 340px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  /* position: relative;
    z-index: -100; */
}
.header-box .header-bav-search .search-box .search-bar > img {
  width: 24px;
  height: 24px;
  position: relative;
  top: 6px;
}
.header-box .header-bav-search .search-box .search-suggest-list a {
  color: #666;
  font-size: 12px;
  line-height: 15px;
  overflow: hidden;
  text-decoration: none;
  padding: 6px 6px 0;
  position: relative;
  left: 20px;
}

/* 菜单栏显示与隐藏 */
.header-box .menu-box {
  width: 230px;
  position: relative;    
}

.menu-box .menu-show{
  background-color: #333;
}
.menu-box .menu-show a{
  display: block;
  width: 72px;
  line-height: 50px;
  height: 50px;
  font-size: 16px;
  color: #fff;
  margin: auto;
  /* text-align: center; */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  
}
.menu-box .menu-show a >span{
  /* vertical-align:bottom; */
}
.menu-show{height: 50px;}
.menu-show a> img{
  width: 20px;
  height: 20px;
  vertical-align: -5px;  
}
.menu-box .menu-hidden{
  width: 230px;
  height: 450px;
  background: rgba(51,51,51,.7);
  display: none;
  position: absolute;
  left: 0;
}
.menu-hidden .list{
  font-size: 16px;
  color: #fff;
  line-height: 50px;
  height: 50px;
  text-align: center;
  display: block;
}
.menu-box:hover > .menu-hidden{
  display: block;
  
}
.list:hover {
  background-color: #4c4c4c;;
}


/* 注册 */
.register >div img{
  width: 16px;
  height: 16px;

}